import java.net.InetAddress;

/**
 * @author Nicholas Gilbert
 * Holds information about the Users on the Server
 */
public class User {
	public String name; //full name of the user
	public String email; //users email
	public String userID; //users login ID
	public InetAddress currentIP; //users current IP
	private byte[] passHash; //the hash of the users password
	public String pass;
	
	/**
	 * @return password hash
	 */
	public byte[] getHash()
	{
		return passHash;
	}
	public void setHash(byte[] pass)
	{
		passHash=pass;
	}
	public String toString()
	{	
		//return "class:User"+";"+name+";"+email+";"+userID+";"+currentIP.toString()+";"+passHash.toString();
		return "class:User"+";"+name+";"+email+";"+userID+";"+currentIP.toString()+";"+pass;
	}
}
